package com.wicket.okrcomponent.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.page.PageMethod;
import com.wicket.okrcomponent.biz.service.NetDiskService;
import com.wicket.okrcomponent.biz.service.dto.req.*;
import com.wicket.okrcomponent.biz.service.dto.res.*;
import com.wicket.okrcomponent.common.ro.OkrResult;
import com.wicket.okrcomponent.common.util.CommonFunctionHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 * 
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/comp/netDisk/")
public class NetDiskController {

  @Autowired
  NetDiskService netDiskService;
/**
   * D2查询上传配置信息详情(公共)
   */
    @PostMapping("queryUploadConfigInfoDetailCom")
    public OkrResult<QueryUploadConfigInfoDetailComRespDto> queryUploadConfigInfoDetailCom(@RequestBody @Validated QueryUploadConfigInfoDetailComReqDto reqDTO){
    return OkrResult.success(netDiskService.queryUploadConfigInfoDetailCom(reqDTO));
    }
/**
   * D2执行上传文件名称转单字段(公共)
   */
    @PostMapping("implementUploadFileNameToFieldCom")
    public OkrResult<ImplementUploadFileNameToFieldComRespDto> implementUploadFileNameToFieldCom(@RequestBody @Validated ImplementUploadFileNameToFieldComReqDto reqDTO){
    return OkrResult.success(netDiskService.implementUploadFileNameToFieldCom(reqDTO));
    }
/**
   * D2执行物理文件上传(公共)
   */
    @PostMapping("implementPhpFileUploadCom")
    public OkrResult<ImplementPhpFileUploadComRespDto> implementPhpFileUploadCom(@RequestBody @Validated ImplementPhpFileUploadComReqDto reqDTO){
    return OkrResult.success(netDiskService.implementPhpFileUploadCom(reqDTO));
    }
}
